use PopUpManager to close menus