fixed template search, ng-controller was too deep