   @IBOutlet var globeButton: UIBarButtonItem!
   @IBOutlet var closeButton: UIBarButtonItem!
 
+  var navbarBackground: KMNavigationBarBackgroundView!
   var fontFamily = UIFont.systemFont(ofSize: UIFont.systemFontSize).fontName
   private var newFontFamily = ""
 

  }

  override func willRotate(to toInterfaceOrientation: UIInterfaceOrientation, duration: TimeInterval) {
    let orientation: UIInterfaceOrientation = toInterfaceOrientation
    if UIDevice.current.userInterfaceIdiom == .phone {
      let screenRect = UIScreen.main.bounds
      let size = CGFloat.maximum(screenRect.size.width, screenRect.size.height)
      if size > 568.0 {
        // TODO: Refactor since duplicated in viewDidLoad()
        // Navbar for iPhone 6 & 6 Plus
        let image: UIImage
        if UIInterfaceOrientationIsPortrait(orientation) {
          image = #imageLiteral(resourceName: "kmwb-navbar-Portrait.png")
        } else {
          image = #imageLiteral(resourceName: "kmwb-navbar-Landscape-568h.png")
        }
        let bgImg = image.resizableImage(
          withCapInsets: UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0), resizingMode: .stretch)
        navigationController?.navigationBar.setBackgroundImage(bgImg, for: UIBarMetrics.default)
      }
    } else {
      let image: UIImage
      if UIInterfaceOrientationIsPortrait(orientation) {
        image = #imageLiteral(resourceName: "kmwb-navbar-Portrait.png")
      } else {
        image = #imageLiteral(resourceName: "kmwb-navbar-Landscape.png")
      }
      navigationController?.navigationBar.setBackgroundImage(image, for: UIBarMetrics.default)
    }
  }


    webView.scalesPageToFit = true

    // Setup NavigationBar
    navbarBackground = KMNavigationBarBackgroundView()
    navbarBackground.hideLogo()
    navbarBackground.addToNavbar(navBar)
    navbarBackground.setOrientation(UIApplication.shared.statusBarOrientation)

    // Setup address field
    let addressFrame = CGRect(x: 10, y: 4.0, width: navBar.frame.size.width - 20, height: 28)
