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

otherwise awesome.