                                                object: nil)
         self.verifyiCloudAccount()
         
-//        self.searchController.searchResultsUpdater = self
-        self.searchController.hidesNavigationBarDuringPresentation = false
-        self.searchController.dimsBackgroundDuringPresentation = false
-        self.searchController.searchBar.placeholder = NSLocalizedString("Search", comment: "")
-        self.searchController.searchBar.delegate = self
-        self.definesPresentationContext = true
-        self.tableView.tableHeaderView = self.searchController.searchBar
+        self.setupSearchBar()
     }
     
     override func viewWillAppear(_ animated: Bool) {

        }
    }
    
    func verifyiCloudAccount() {
        guard UserDefaults.standard.bool(forKey: self.iCloudEnabledKey) == true else { return }
        

        
        self.tableView.separatorColor = ColorThemeHelper.reederCream(alpha: 0.05)
        self.tableView.separatorInset = UIEdgeInsets(top: 0, left: 8, bottom: 0, right: 8)
        self.tableView.backgroundView = UIView()
        
        self.tableViewRefreshControl = {
            let refreshControl = UIRefreshControl()
