Create mainpage.java

This is the main page of the application.