         url = "http://" + url
       }
       title = "Loading..."
+      webView!.isHidden = false
+      self.hasOrange = false
       webView!.load(URLRequest(url: URL(string:url)!))
       sendMessage(id:id, message:"OK")
     } else {

  func startBrowser(id:String) {
    UIScreen.main.brightness = 0.0
    closeWebView()
    startTime = DispatchTime.now()
    webView = WKWebView()
    webView!.frame = self.view.bounds
    self.view.addSubview(webView!)
    webView!.loadHTMLString(startPage, baseURL: URL(string: "http://www.webpagetest.org"))
    hasOrange = true
    webView!.navigationDelegate = self

  }
  
  func closeWebView() {
    self.view.backgroundColor = UIColor.black
    if webView != nil {
      webView!.navigationDelegate = nil
      webView!.removeObserver(self, forKeyPath: #keyPath(WKWebView.estimatedProgress))
