 extension MainViewController: AutocompleteViewControllerDelegate {
     
     func autocomplete(selectedSuggestion suggestion: String) {
+        dismissOmniBar()
         loadQueryInCurrentTab(query: suggestion)
-        omniBar?.resignFirstResponder()
     }
     
     func autocomplete(pressedPlusButtonForSuggestion suggestion: String) {

    }
    
    func onOmniQuerySubmitted(_ query: String) {
        loadQueryInCurrentTab(query: query)
    }
    
    func onActionButtonPressed() {
        if let current = currentTab, let index = tabManager.indexOf(tab: current) {
            remove(tabAt: index)
        }

    
    private func dismissAutcompleteSuggestions() {
        guard let controller = autocompleteController else { return }
        autocompleteController = nil
        controller.view.removeFromSuperview()
        controller.removeFromParentViewController()
    }
    
    @IBAction func onBackPressed(_ sender: UIBarButtonItem) {
