refactor lines.jsp