fixed remove/hide main-menu when sub-menus are closed