             navigationItem.searchController = searchController
         }
 
-        alertController = UIAlertController(
+        addAccountAlertController = UIAlertController(
             title: "Add Account",
             message: "Add an account by scanning a QR code or enter a secret manually.",
             preferredStyle: .actionSheet)

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

    override func viewDidLoad() {
        super.viewDidLoad()

    }

    @IBAction func addAccount(_ sender: Any) {
        present(addAccountAlertController, animated: true, completion: nil)
    }

    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
