added a main.java and titles to main.jsp