CvTemplateFieldController refactored