menus now close when click elsewhere