 
 class ViewController: UIViewController, WKNavigationDelegate {
     
+    var websites = ["apple.com", "google.com", "hackingwithswift.com"]
     var webView: WKWebView!
+    var progressView: UIProgressView!
 
     private enum ActionKeys: Selector {
         case Open = "open"

        webView.loadRequest(NSURLRequest(URL: url))
    }
    
    //MARK: Webkit Navigation Delegate
    
    func webView(webView: WKWebView, didFinishNavigation navigation: WKNavigation!) {
        title = webView.title
    }
}


        super.viewDidLoad()
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Open", style: .Plain, target: self, action: ActionKeys.Open.rawValue)
        
        progressView = UIProgressView(progressViewStyle: .Default)
        progressView.sizeToFit()
        let progressButton = UIBarButtonItem(customView: progressView)
        
        let spacer = UIBarButtonItem(barButtonSystemItem: .FlexibleSpace, target: nil, action: nil)
        let refresh = UIBarButtonItem(barButtonSystemItem: .Refresh, target: self, action: "refreshTapped")
        
        toolbarItems = [progressButton, spacer, refresh]
        navigationController?.toolbarHidden = false

        let url = NSURL(string: "https://" + websites[0])!
        webView.loadRequest(NSURLRequest(URL: url))
        webView.allowsBackForwardNavigationGestures = true
        webView.addObserver(self, forKeyPath: "estimatedProgress", options: .New, context: nil)
    }

    override func didReceiveMemoryWarning() {
