     var hpc : HeliumPanelController?
     var borderColor : NSColor {
         get {
-            if let url = hpc?.webView?.url, url.isFileURL {
+            if let webView = hpc?.webView, let url = webView.url, url.isFileURL {
                 return NSColor.controlColor
             }
             else


            let color = self.borderColor
            self.layer?.borderColor = color.cgColor
            self.layer?.borderWidth = 2
            color.setStroke()
            path.stroke()
        }

            }
        }
    }
    
    required override init(frame frameRect: NSRect) {
        super.init(frame: frameRect)
        self.cell?.controlView?.wantsLayer = true
        self.layer?.borderWidth = 2
        self.layer?.borderColor = borderColor.cgColor/// NSColor(hex: 0x44AAFF).cgColor
    }
      
    required init?(coder: NSCoder) {
        ///super.init(coder: coder)
        fatalError("init(coder:) has not been implemented")
    }
    
    override func draw(_ dirtyRect: NSRect) {
        super.draw(dirtyRect)
        
