move logic from MainMenu class to controller classes