Refactoring of index.jsp