refactoring on MainMenuActivity