fixing use of deprecated control template syntax