routing fixes, sync main menu links with page state