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

            layoutChildViewControllers()
            currentViewController = displayingControllers[index] as? UIViewController
            postFullyDisplayedNotificationWithIndex(index)
            indexInside = index
            didEnterController(currentViewController!, atIndex: indexInside)
        }
    }
    

        scrollFrame.origin.y -= showOnNavigationBar && (navigationController?.navigationBar != nil) ? menuHeight : 0
        contentView?.frame = scrollFrame
        contentView?.contentSize = CGSize(width: CGFloat(childControllersCount) * viewWidth, height: 0)
        contentView?.contentOffset = CGPoint(x: CGFloat(_selectedIndex) * viewWidth, y: 0)
        shouldNotScroll = false
    }
    
