added offline functionality to MainMenu.java