edited MainPage.java: modifying focebook function