     webView.loadRequest(NSURLRequest(URL: url))
   }
   
+  func refreshTapped() {
+    UIApplication.sharedApplication().networkActivityIndicatorVisible = true
+    webView.reload()
+  }
 }
 
 extension ViewController: WKNavigationDelegate {

    webView.allowsBackForwardNavigationGestures = true
    
    navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Open", style: .Plain, target: self, action: "openTapped")
  }
  
  override func didReceiveMemoryWarning() {

    ac.addAction(UIAlertAction(title: "loopinsight.com", style: .Default, handler: openPage))
    ac.addAction(UIAlertAction(title: "Cancel", style: .Cancel, handler: nil))
    
    if UIDevice().userInterfaceIdiom == UIUserInterfaceIdiom.Pad {
      ac.modalPresentationStyle = .Popover
      ac.popoverPresentationController!.barButtonItem = navigationItem.rightBarButtonItem
    }
