pulled mainpage functionality out into separate mainmenu. menus now all clean and working