framework for control templates