         title = searchText
         SVProgressHUD.show()
         
-        search(for: searchText, type: searchBar.selectedScopeButtonIndex)
-    }
-    
-    func searchBarCancelButtonClicked(_ searchBar: UISearchBar) {
-        // Resume selected button
-        searchBar.selectedScopeButtonIndex = searchScopeIndex
-    }
-
-}
-
-// MARK: - UISearchResultsUpdating
-extension SearchBoxTableViewController: UISearchResultsUpdating {
-    
-    
-    func updateSearchResults(for searchController: UISearchController) {
-        // TODO:
-    }
-    
+        searchScopeIndex = searchBar.selectedScopeButtonIndex
+        search(for: searchText, type: searchScopeIndex)
+    }
+
 }
 
 // MARK: - UISearchControllerDelegate

        tableView.mj_footer = {
            //  Use unowned because the caller is self. No async
            let footer = MJRefreshAutoNormalFooter { [unowned self] in
                if let text = self.searchController.searchBar.text {
                self.search(for: text, type: self.searchScopeIndex)
                }
            }
            footer?.isHidden = true // Appeare after search
            

        
        controller.delegate = self
        controller.searchBar.delegate = self
        
        controller.searchBar.scopeButtonTitles = PercolatorKey.searchTypeArr
        
