setting main menu isSelected when starting from any route

When you start from a non default route (i.e. click details, refresh) the proper mainmenu item isn't selected. I've added necessary code to fix this.