 		NotificationCenter.default.addObserver(self, selector: #selector(refreshProgressDidChange(_:)), name: .AccountRefreshDidFinish, object: nil)
 		NotificationCenter.default.addObserver(self, selector: #selector(refreshProgressDidChange(_:)), name: .AccountRefreshProgressDidChange, object: nil)
 
+		NotificationCenter.default.addObserver(self, selector: #selector(sidebarSelectionDidChange(_:)), name: .SidebarSelectionDidChange, object: nil)
 		NotificationCenter.default.addObserver(self, selector: #selector(unreadCountDidChange(_:)), name: .UnreadCountDidChange, object: nil)
+		NotificationCenter.default.addObserver(self, selector: #selector(displayNameDidChange(_:)), name: .DisplayNameDidChange, object: nil)
 
 		DispatchQueue.main.async {
 			self.updateWindowTitle()

		CoalescingQueue.standard.add(self, #selector(makeToolbarValidate))
	}

	@objc func unreadCountDidChange(_ note: Notification) {

		if note.object is AccountManager {
			unreadCount = AccountManager.shared.unreadCount
		}
	}

	// MARK: - Toolbar
	
	@objc func makeToolbarValidate() {


	func updateWindowTitle() {

		if currentFeedOrFolder == nil {
			window?.title = appDelegate.appName!
			return
		}
		
		if let folder = currentFeedOrFolder as? Folder {
			if folder.unreadCount < 1 {
				window?.title = "\(folder.nameForDisplay)"
			}
			else {
				window?.title = "\(folder.nameForDisplay) (\(folder.unreadCount))"
			}
			return
		}
		
		if let feed = currentFeedOrFolder as? Feed {
			if feed.unreadCount < 1 {
				window?.title = "\(feed.nameForDisplay)"
			}
			else {
				window?.title = "\(feed.nameForDisplay) (\(feed.unreadCount))"
			}
			return
		}
		
	}

	func saveSplitViewState() {
