         webView!.navigationDelegate = self
         messageHandler = MessageHandler(vc: self)
         webView!.configuration.userContentController.add(messageHandler!, name: "stickynotes")
-        let item = UIBarButtonItem(title: "Stickies", style: UIBarButtonItemStyle.plain, target: self, action: #selector(WebViewController.showStickies))
-        navigationItem.rightBarButtonItem = item
+        navigationItem.rightBarButtonItem = UIBarButtonItem(image: UIImage(named: "search"), style: .plain, target: self, action: "search")
         navigationItem.title = page!.title
 
         if let str = page?.url, let url = URL(string: str) {

        }
    }
    var appDelegate: AppDelegate { return UIApplication.shared.delegate as! AppDelegate }
    var webView:     WKWebView?
    var page: PageEntity?
    var observer: Observer?
    var messageHandler: MessageHandler?
    init(page: PageEntity) {
        self.page = page
        super.init(nibName: nil, bundle: nil)

    // MARK: - WKNavigationDelegate
    func webView(_ webView: WKWebView, didFail navigation: WKNavigation!, withError error: Error) {}
    func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
        backButton?.isEnabled    = webView.canGoBack
        forwardButton?.isEnabled = webView.canGoForward
        guard let url = webView.url?.absoluteString else { return }
        page = PageEntity.findOrCreateBy(url: url, title: webView.title ?? "")
        navigationItem.title = webView.title ?? url
        reloadStickies()
    }
}
