     }
 
     private func showSearchController() {
+		self.switchToSearchMode = true
         if searchController == nil {
 //			let isPrivate = tabManager.selectedTab?.isPrivate ?? false
             searchController = CliqzSearchViewController(profile: self.profile)

        }
        urlBar.currentURL = url
        urlBar.leaveOverlayMode()
    }
    
}

	private func switchToSearchModeIfNeeded() {
        if (self.switchToSearchMode) {
			self.urlBar.enterOverlayMode("", pasted: false)
//			self.switchToSearchMode = false
            if let searchController = self.searchController {
                searchController.resetState()
            }
