Refactoring for header.jsp and footer.jsp.