         return cancelButton
     }()
     
-    var showQRScannerButton: UIButton = {
-        let button = UIButton()
+    fileprivate lazy var showQRScannerButton: InsetButton = {
+        let button = InsetButton()
         button.setImage(UIImage.templateImageNamed("menu-ScanQRCode"), for: .normal)
         button.accessibilityIdentifier = "urlBar-scanQRCode"
         button.clipsToBounds = false

            self.locationContainer.snp.remakeConstraints { make in
                let height = URLBarViewUX.LocationHeight + (URLBarViewUX.TextFieldBorderWidthSelected * 2)
                make.height.equalTo(height)
                // the offset is equal to the padding but minus the borderwidth
                let padding = URLBarViewUX.Padding - URLBarViewUX.TextFieldBorderWidthSelected
                make.trailing.equalTo(self.showQRScannerButton.snp.leading).offset(-padding)
                make.leading.equalTo(self.cancelButton.snp.trailing)
                make.centerY.equalTo(self)
            }

        
        showQRScannerButton.snp.makeConstraints { make in
            make.centerY.equalTo(self.locationContainer)
            make.trailing.equalTo(self)
            make.size.equalTo(URLBarViewUX.ButtonHeight)
        }
    }

