changed methods and switched back to using templateUrl