         }
         urlBar.currentURL = url
         urlBar.leaveOverlayMode()
+		self.switchToSearchMode = false
     }
     
 }

    }

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

        }
    }
    
    private func navigateToUrl(url: NSURL, searchQuery: String?) {
        let query = (searchQuery != nil) ? searchQuery! : ""
        let forwardUrl = NSURL(string: "\(WebServer.sharedInstance.base)/cliqz/trampolineForward.html?url=\(url.absoluteString.encodeURL())&q=\(query.encodeURL())")
        if let tab = tabManager.selectedTab,
