adds $scope.showTree for hiding and showing tree based scope.$watch on search model