 import UIKit
 import WebKit
 import ReactiveSwift
+import SnapKit
+import GoogleMobileAds
 
 class WebViewController: UIViewController, WKNavigationDelegate {
     enum Mode {

    
    override func viewDidLoad() {
        super.viewDidLoad()
        webView = createWebView()
        view.addSubview(webView!)
        view.autoresizesSubviews = true
        view.autoresizingMask = [.flexibleHeight, .flexibleWidth]

        webView!.navigationDelegate = self
        messageHandler = MessageHandler(vc: self)
        webView!.configuration.userContentController.add(messageHandler!, name: "stickynotes")

        }
    }
    var webView:          WKWebView?
    var bannerView:       GADBannerView?
    var page:             PageEntity? {
        didSet {
            mode = page == nil ? .newPage : .view
