     
     fileprivate func clearAllTabs() {
         tabManager.clearAll()
-        attachHomeTab()
-        refreshControls()
+        launchTab(active: false)
     }
     
     private func resetOmniBar(withStyle style: OmniBar.Style) {

        }
    }
    
    fileprivate func launchTab() {
        attachHomeTab(active: settings.launchNewTabInActiveMode)
        refreshControls()
    }
    

        if let current = currentTab, let index = tabManager.indexOf(tab: current) {
            remove(tabAt: index)
        }
        launchTab()
    }
    
    func onRefreshButtonPressed() {
