modified header and footer of freemarker templates