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

    
    override func viewDidLoad() {
        super.viewDidLoad()
        launchTab(active: false)
    }
    
    func loadQueryInNewWebTab(query: String) {
