             accountUpdateViewController.delegate = self
             accountUpdateViewController.account = cell.account
         }
+    }
+
+    private func makeSearchController() -> UISearchController {
+        let searchResultsController = storyboard?.instantiateViewController(withIdentifier: "AccountSearchResultsViewController") as! AccountSearchResultsViewController
+        let searchController = UISearchController(searchResultsController: searchResultsController)
+        searchController.searchResultsUpdater = self
+        return searchController
     }
 
     private func persistAccountOrder() {

        }
        persistAccountOrder()

        let searchResultsController = storyboard?.instantiateViewController(withIdentifier: "AccountSearchResultsViewController") as! AccountSearchResultsViewController
        searchController = UISearchController(searchResultsController: searchResultsController)
        searchController.searchResultsUpdater = self
        if #available(iOS 11.0, *) {
            navigationItem.searchController = searchController
        }


    private let keychain = Keychain()
    private var accounts = [Account]()
    private lazy var searchController = makeSearchController()
    private var alertController: UIAlertController!

    override func viewDidLoad() {
