CvTemplateController priorty selection validation added