         }
 
         addOpenInViewIfNeccessary(webView.URL)
+        
+        // Cliqz: hide the webViewOverlay when finis navigating to a url
+        hideWebViewOverlay()
     }
 
     private func addOpenInViewIfNeccessary(url: NSURL?) {

    var footerBackdrop: UIView!
    private var footerBackground: BlurWrapper?
    private var topTouchArea: UIButton!

    // Backdrop used for displaying greyed background for private tabs
    var webViewContainerBackdrop: UIView!

//        tabManager.selectTab(tab)
        
        tabManager.selectedTab?.webView?.loadRequest(NSURLRequest(URL: url))
    }
}

/**
 * Cliqz: Add an overlay to the WKWebView to hide the old page while navigating to the new search result
 */
extension BrowserViewController {
    
    private func showWebViewOverLay(selectedTab: Browser) {
        if self.webViewOverlay == nil {
            webViewOverlay = UIView(frame: (selectedTab.webView?.bounds)!)
            webViewOverlay!.backgroundColor = UIColor.whiteColor()
            selectedTab.webView?.addSubview(webViewOverlay!)
        }
    }
    
    private func hideWebViewOverlay() {
        if webViewOverlay != nil {
            webViewOverlay!.removeFromSuperview()
            webViewOverlay = nil
        }
    }
}

