Made layout with freemarker macros