     }
     
     public func scrollViewDidEndDecelerating(scrollView: UIScrollView) {
-        indexInside = Int(contentView!.contentOffset.x / viewWidth)
+        _selectedIndex = Int(contentView!.contentOffset.x / viewWidth)
         removeSuperfluousViewControllersIfNeeded()
-        currentViewController = displayingControllers[indexInside] as? UIViewController
-        postFullyDisplayedNotificationWithIndex(indexInside)
-        didEnterController(currentViewController!, atIndex: indexInside)
+        currentViewController = displayingControllers[_selectedIndex] as? UIViewController
+        postFullyDisplayedNotificationWithIndex(_selectedIndex)
+        didEnterController(currentViewController!, atIndex: _selectedIndex)
     }
     
     public func scrollViewDidEndScrollingAnimation(scrollView: UIScrollView) {
-        indexInside = Int(contentView!.contentOffset.x / viewWidth)
+        _selectedIndex = Int(contentView!.contentOffset.x / viewWidth)
         removeSuperfluousViewControllersIfNeeded()
-        currentViewController = displayingControllers[indexInside] as? UIViewController
-        postFullyDisplayedNotificationWithIndex(indexInside)
-        didEnterController(currentViewController!, atIndex: indexInside)
+        currentViewController = displayingControllers[_selectedIndex] as? UIViewController
+        postFullyDisplayedNotificationWithIndex(_selectedIndex)
+        didEnterController(currentViewController!, atIndex: _selectedIndex)
     }
     
     public func scrollViewDidEndDragging(scrollView: UIScrollView, willDecelerate decelerate: Bool) {

            view.addSubview(menu)
        }
        menuView = menu
        if indexInside != 0 {
            menuView?.selectItemAtIndex(indexInside)
        }
    }
    

    private func resetScrollView() {
        contentView?.removeFromSuperview()
        addScrollView()
        addViewControllerAtIndex(_selectedIndex)
        currentViewController = displayingControllers[_selectedIndex] as? UIViewController
    }
    
    private func calculateSize() {
