     }
     
     func presentationIndexForPageViewController(pageViewController: UIPageViewController) -> Int {
-        return indexForDotIndicator;
+        guard let viewControllers = viewControllers, currentVC = viewControllers.first, presentationIndex = pageControllers.indexOf(currentVC) else {
+            return 0
+        }
+        return presentationIndex
     }
     
     func pageViewController(pageViewController: UIPageViewController, viewControllerAfterViewController viewController: UIViewController) -> UIViewController? {
-        let index = pageControllers.indexOf(viewController)
-        if index == nil || index! + 1 == pageControllers.count {
+        guard let index = pageControllers.indexOf(viewController) else {
             return nil
-        } else {
-            return pageControllers[index! + 1]
         }
+        return index >= pageControllers.count - 1 ? nil : pageControllers[index + 1]
     }
     
     func pageViewController(pageViewController: UIPageViewController, viewControllerBeforeViewController viewController: UIViewController) -> UIViewController? {
-        let index = pageControllers.indexOf(viewController)
-        if index == nil || index! == 0 {
+        guard let index = pageControllers.indexOf(viewController) else {
             return nil
-        } else {
-            return pageControllers[index! - 1]
         }
+        return index == 0 ? nil : pageControllers[index - 1]
     }
     
     override func preferredStatusBarStyle() -> UIStatusBarStyle {

    
    override func viewDidAppear(animated: Bool) {
        super.viewDidAppear(animated)
        if let pageControl = view.wmf_firstSubviewOfType(UIPageControl) {
            pageControl.userInteractionEnabled = false
        }
    }

        return controllers
    }()
    
    private lazy var pageControl: UIPageControl? = {
        return self.view.wmf_firstSubviewOfType(UIPageControl)
    }()

    override func viewDidLoad() {
        super.viewDidLoad()
        dataSource = self
        delegate = self
        
        let direction:UIPageViewControllerNavigationDirection = UIApplication.sharedApplication().wmf_isRTL ? .Forward : .Reverse
        
        setViewControllers([pageControllers.first!], direction: direction, animated: true, completion: nil)

        addGradient()
        
