Change to Mainpage.java