Refactor index.jsp