 		
 		nameTextField.delegate = self
 		
-		accountLabel.text = (accounts[0] as DisplayNameProvider).nameForDisplay
-		
 		if shouldDisplayPicker {
 			accountPickerView.dataSource = self
 			accountPickerView.delegate = self
 			
-			if let index = accounts.firstIndex(where: { $0.accountID == AppDefaults.addFolderAccountID }) {
+			if let index = accounts.firstIndex(of: selectedAccount) {
 				accountPickerView.selectRow(index, inComponent: 0, animated: false)
 			}
 			

		return accounts.count > 1
	}
	
	private var accounts: [Account]!
	
	weak var delegate: AddContainerViewControllerChildDelegate?
	

		NotificationCenter.default.addObserver(self, selector: #selector(textDidChange(_:)), name: UITextField.textDidChangeNotification, object: nameTextField)
		
    }
	
	private func didSelect(_ account: Account) {
		AppDefaults.addFolderAccountID = account.accountID
		selectedAccount = account
	}

	func cancel() {
		delegate?.processingDidEnd()
	}
	
	func add() {
		guard let folderName = nameTextField.text else {
			return
		}
		selectedAccount.addFolder(folderName) { result in
			switch result {
			case .success:
				self.delegate?.processingDidEnd()
			case .failure(let error):
				self.presentError(error)
			}
		}
	}
