fixed search bug in controller. ng-success