refactor profile.jsp