Moved the main menu code from the activity to the fragment