Use macro to set name of sub window