added MainMenu class in place of build_menu