     private var nextUserWindowTopLeftPoint: NSPoint = NSPoint.zero
 
     deinit { log.debug("deinit") }
-}
-
-// MARK: - Object Lifecycle
-extension MainViewController {
-    override func awakeFromNib() {
-        super.awakeFromNib()
-        MainViewController.shared = self
-    }
 }
 
 // MARK: - NSViewController Functions

    enum ConnectionStatus { case disconnected, connecting, connected }

    // MARK: Properties
    static var shared: MainViewController!
    weak var delegate: MainViewControllerDelegate?

    // MARK: Main Outlets

    }

    func showHandleNameAddViewController(live: Live, chat: ChatMessage) {
        let vc = StoryboardScene.MainWindowController.handleNameAddViewController.instantiate()
        vc.handleName = (defaultHandleName(live: live, chat: chat) ?? "") as NSString
        vc.completion = { [weak self, weak vc] (cancelled, handleName) in
            guard let me = self, let vc = vc else { return }
            if !cancelled, let handleName = handleName {
                HandleNameManager.shared.updateHandleName(
                    for: chat.userId, in: live.communityId, name: handleName)
                me.refreshHandleName()
            }
            me.dismiss(vc)
        }
        presentAsSheet(vc)
    }

    private func defaultHandleName(live: Live, chat: ChatMessage) -> String? {
