   var browser:BraveBrowserViewController
   var mainSidePanel:MainSidePanelViewController
   var leftSlideOutShowing = false
+
+  var clickDetectionView = UIButton()
 
   init(browser:BraveBrowserViewController) {
     self.browser = browser

  func toggleLeftPanel() {
    leftSlideOutShowing = !leftSlideOutShowing
    mainSidePanel.showAndSetDelegate(leftSlideOutShowing, delegate:self)
    let width = leftSlideOutShowing ? 300 : 0
    let animation = {
          self.mainSidePanel.view.snp_remakeConstraints {

    setupBrowserConstraints(useTopLayoutGuide: true)

    NSNotificationCenter.defaultCenter().addObserver(self, selector: "leftSlideOutClicked:", name: kNotificationLeftSlideOutClicked, object: nil)

    clickDetectionView.addTarget(self, action: "dismissSlideOut", forControlEvents: UIControlEvents.TouchUpInside)
  }

  func dismissSlideOut() {
    toggleLeftPanel()
  }

  private func setupBrowserConstraints(useTopLayoutGuide useTopLayoutGuide: Bool) {
