             }
             
             self.window?.toolbar?.items.lazy.compactMap { $0 as? NSSharingServicePickerToolbarItem }.first?.delegate = document
-            self.selectSyntaxPopUp(with: document.syntaxParser.style.name)
+            self.selectSyntaxPopUpItem(with: document.syntaxParser.style.name)
             
             // observe document's style change
             self.documentStyleObserver = document.didChangeSyntaxStyle
                 .receive(on: RunLoop.main)
-                .sink { [weak self] in self?.selectSyntaxPopUp(with: $0) }
+                .sink { [weak self] in self?.selectSyntaxPopUpItem(with: $0) }
         }
     }
     

                popUpButton.bezelStyle = .texturedRounded
                popUpButton.menu?.autoenablesItems = false
                self.syntaxPopUpButton = popUpButton
                self.buildSyntaxPopupButton()
                
                let item = NSToolbarItem(itemIdentifier: itemIdentifier)
                item.label = "Syntax Style".localized

        self.styleListObserver = Publishers.Merge(SyntaxManager.shared.$settingNames.eraseToVoid(),
                                                  UserDefaults.standard.publisher(for: .recentStyleNames).eraseToVoid())
            .receive(on: RunLoop.main)
            .sink { [weak self] in self?.buildSyntaxPopUpButton() }
    }
    
    
