Added TemplateFactory - solved problem with Controls