fixed deprecated use of control in template