 	}
 
 	func webView(webView: WKWebView, didStartProvisionalNavigation navigation: WKNavigation!) {
+	}
+
+	func webView(webView: WKWebView, didFinishNavigation navigation: WKNavigation!) {
+		self.spinnerView.removeFromSuperview()
+		self.spinnerView.stopAnimating()
 	}
 
 	func userContentController(userContentController:  WKUserContentController, didReceiveScriptMessage message: WKScriptMessage) {

	
    private var searchLoader: SearchLoader!
    private let cliqzSearch = CliqzSearch()
    var webView: WKWebView?
	weak var delegate: SearchViewDelegate?

	private var historyResults: Cursor<Site>?
	

        self.webView = WKWebView(frame: self.view.bounds, configuration: config)
		self.webView?.navigationDelegate = self;
        self.view.addSubview(self.webView!)

		self.spinnerView = UIActivityIndicatorView(activityIndicatorStyle: UIActivityIndicatorViewStyle.Gray)
		self.view.addSubview(spinnerView)
		spinnerView.startAnimating()

//		let url = NSURL(string: "http://localhost:3005/extension/index.html")
		let url = NSURL(string: "http://cdn.cliqz.com/mobile/extension/index.html")
