             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()


        let cancelAction = UIAlertAction(title: "Cancel", style: .cancel, handler: nil)

        addAccountAlertController.addAction(scanQRCodeAction)
        addAccountAlertController.addAction(enterManuallyAction)
        addAccountAlertController.addAction(cancelAction)

        let updater = AccountsTableViewUpdater(tableView: tableView)
        updater.startUpdating()
