refactored the main page menu area