browser history support for main menu.