         }
     }
     
-    func enableSearch(_ enable: Bool) {
+    func setSearchEnabled(_ enable: Bool) {
         if let navigationController = navigationController, !navigationController.isNavigationBarHidden {
             // interact when nav is not hidden
             if enable {
                 navigationItem.searchController = searchController
             } else {
                 navigationItem.searchController = nil
+                // workaround to update UI
+                navigationController.setNavigationBarHidden(true, animated: false)
+                navigationController.setNavigationBarHidden(false, animated: false)
             }
         }
     }

    var searchBarText: String?
    var isFindOnPageEnabled = false {
        willSet {
            self.enableSearch(newValue)
        }
    }
    var searchController: UISearchController {
        get {
            return setUpSearch()
        }
    }
    

    }
    
    // on page search
    func createSearchController() -> UISearchController {
        let searchController = UISearchController(searchResultsController: nil)
        searchController.searchBar.delegate = self
        searchController.delegate = self
