             UIMenuController.shared.menuItems = [lookupMenu]
         }
     }
-
+    override func canPerformAction(_ action: Selector, withSender sender: Any?) -> Bool {
+        addCustomMenu()
+        return super.canPerformAction(action, withSender: sender)
+    }
     var url: URL? = nil {
         didSet {
             if !urlText.isEditing {

            }
        }
    }

    weak var toolsetDelegate: BrowserToolsetDelegate? {
        didSet {
            toolset.delegate = toolsetDelegate

    private var preActivationConstraints = [Constraint]()
    private var postActivationConstraints = [Constraint]()
    
    init() {
        super.init(frame: CGRect.zero)

