Assign tags to windows