Hide menus on page changes