templateUrl with function to return url