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

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

        }
    }
    
    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)
            }
        }
    }
