update templateUrl on directives