         view.addSubview(webView)
         webView.navigationDelegate = self;
         webView.addObserver(self, forKeyPath: "estimatedProgress", options: .New, context: nil)
-        
+
         //Setting up the constraints
         let heightConstaint = NSLayoutConstraint.init(item: webView, attribute:.Height, relatedBy: .Equal, toItem: view, attribute: .Height, multiplier: 1.0, constant: 0.0)
         let widthConstaint = NSLayoutConstraint.init(item: webView, attribute:.Width, relatedBy: .Equal, toItem: view, attribute: .Width, multiplier: 1.0, constant: 0.0)
         view.addConstraints([heightConstaint,widthConstaint])
     }
-    
+
     func setupNavigationBarButtons() {
         let backbutton = UIBarButtonItem.init(title: "Back", style: .Plain, target: self, action: #selector(WKWebViewRenderController.backButtonPressed));
         self.navigationItem.leftBarButtonItem = backbutton;
     }
-    
+
     func backButtonPressed() {
         if webView.canGoBack {
             webView.goBack()

        progressView.autoresizingMask = [.FlexibleWidth, .FlexibleTopMargin]
    }

//pragma mark - WKNavigationDelegate methods
    func webView(webView: WKWebView, decidePolicyForNavigationAction navigationAction: WKNavigationAction, decisionHandler: (WKNavigationActionPolicy) -> Void) {
        let startTime = NSDate()
        let urlString = navigationAction.request.URL?.absoluteString

        let urlRequest = NSURLRequest.init(URL: NSURL.init(string: urlToLoad as String)!);
        webView.loadRequest(urlRequest)
    }

    override func viewWillAppear(animated: Bool) {
        super.viewWillAppear(animated)
        view.addSubview(progressView)
    }

    override func viewWillDisappear(animated: Bool) {
        super.viewWillDisappear(animated)
        progressView.removeFromSuperview()
    }

    func setupWebView() {
        webView = WKWebView.init(frame: CGRectZero)
        webView.translatesAutoresizingMaskIntoConstraints = false
