         progressView.autoresizingMask = [.FlexibleWidth, .FlexibleTopMargin]
     }
 
-//pragma mark - WKNavigationDelegate methods
+    //pragma mark - WKNavigationDelegate methods
     func webView(webView: WKWebView, decidePolicyForNavigationAction navigationAction: WKNavigationAction, decisionHandler: (WKNavigationActionPolicy) -> Void) {
         let startTime = NSDate()
         let urlString = navigationAction.request.URL?.absoluteString

            navigationController?.popViewControllerAnimated(true)
        }
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    deinit {
        webView.navigationDelegate = nil
        webView.removeObserver(self, forKeyPath: "estimatedProgress")
    }
    
    
    //KVO callback
    override func observeValueForKeyPath(keyPath: String?, ofObject object: AnyObject?, change: [String : AnyObject]?, context: UnsafeMutablePointer<Void>) {
        if keyPath == "estimatedProgress" {


    func webView(webView: WKWebView, decidePolicyForNavigationResponse navigationResponse: WKNavigationResponse, decisionHandler: (WKNavigationResponsePolicy) -> Void) {
        decisionHandler(.Allow)
    }

    internal func webView(webView: WKWebView, didStartProvisionalNavigation navigation: WKNavigation!) {

    }

    internal func webView(webView: WKWebView, didReceiveServerRedirectForProvisionalNavigation navigation: WKNavigation!) {

    }

    internal func webView(webView: WKWebView, didFailProvisionalNavigation navigation: WKNavigation!, withError error: NSError) {

    }

    internal func webView(webView: WKWebView, didCommitNavigation navigation: WKNavigation!) {

    }

    internal func webView(webView: WKWebView, didFinishNavigation navigation: WKNavigation!) {
        let endTime = NSDate()
        let requestStartTime = timeStampsRecord[(webView.URL?.absoluteString)!] as! NSDate
        let elapsedSeconds = endTime.timeIntervalSinceDate(requestStartTime)
        print((webView.URL?.absoluteString)! + " loaded in " + "\(elapsedSeconds)" + "\n")
        AppDelegate.showToastWithText((webView.URL?.absoluteString)! + " rendered in " + "\(elapsedSeconds)" + " secs")
    }
}