change template engine to freemarker