                 vc.view.removeFromSuperview()
             }
             ttTabBar(self, tabDidDisappear: tabBar)
+        }
+        
+        if let view = activeView {
+            view.removeFromSuperview()
         }
         
         if let item = tabBarItem {

            ttTabBar(self, tabDidDisappear: tabBar)
        }
        
        //add VC to detailView
        //set active bar
        activeTabBar = nil
        
        vc.view.frame = self.detailView.bounds
        detailView.addSubview(vc.view)

    
    private var detailView: UIView! //View that will show controllers
    private var activeTabBar: TTTabBarItem? //Active showing view Controller
    private var activeView: UIView? //Active showing view Controller
    private var tabBarView: UIView! //View of tabBar
    private var contentTabBarView : UIView! //Content, where background is render
    
