lazy load templates with TemplateManager