     
     func searchBarSearchButtonClicked(searchBar: UISearchBar) {
         searchBar.resignFirstResponder()
-        var query: String? = nil
-        var emotion: String? = nil
-        if category != "" {
-            emotion = category.lowercaseString
-        }
-        
-        if searchBar.text != "" {
-            query = searchBar.text
-        }
-        
-        activityIndicator.startAnimating()
-        hootAPI.getRealSuggestions(query, emotionText: emotion, completionHandler: {data, error -> Void in
-            self.suggestions = data
-            
-            //self.searchSuggestionsTable.reloadData()
-            dispatch_async(dispatch_get_main_queue(), {
-                    self.activityIndicator.stopAnimating()
-                    self.searchSuggestionsTable.reloadData()
-                })
-        })
-        
+        
+        updateProducts(searchBar)
+    }
+    
+    func searchBar(searchBar: UISearchBar, textDidChange searchText: String) {
+        updateProducts(searchBar)
     }
     
     func searchBarShouldBeginEditing(searchBar: UISearchBar) -> Bool {

        // TODO: Implement product view stuff
        return cell
    }
    
    func changeSearchScope(index: Int) {
        let selectedTitle: String = selectedControl[index]

        }
    }
    
    // MARK: UITableViewDataSource
    
    func numberOfSectionsInTableView(tableView: UITableView) -> Int {
        return 1
