   var buffer_in = ""
   var hasOrange = false
   var isLandscape = false
+  var isActive = false
   let startPage = "<html>\n" +
                   "<head>\n" +
                   "<style>\n" +

  func closeBrowser(id:String) {
    closeWebView()
    hasOrange = false
    title = "iWptBrowser"
    sendMessage(id:id, message:"OK")
  }

                                  Webview interfaces
   *************************************************************************************/
  override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey : Any]?, context: UnsafeMutableRawPointer?) {
    if isActive && keyPath != nil {
      switch keyPath! {
      case "estimatedProgress":
        if webView != nil {
