         view.backgroundColor = UIColor.whiteColor()
         self.view = view
         
-        self.pageViewController = UIPageViewController(transitionStyle: .Scroll, navigationOrientation: .Horizontal, options: nil)
-        self.pageViewController.willMoveToParentViewController(self)
-        self.addChildViewController(self.pageViewController)
-        self.pageViewController.view.translatesAutoresizingMaskIntoConstraints = false
-        self.view.addSubview(self.pageViewController.view)
+        let pageViewController = UIPageViewController(transitionStyle: .Scroll, navigationOrientation: .Horizontal, options: nil)
+        pageViewController.willMoveToParentViewController(self)
+        self.addChildViewController(pageViewController)
+        pageViewController.view.translatesAutoresizingMaskIntoConstraints = false
+        self.view.addSubview(pageViewController.view)
+        self.pageViewController = pageViewController
         
         self.view.addConstraints([
             NSLayoutConstraint(
-                item: self.pageViewController.view, attribute: .Top,
+                item: pageViewController.view, attribute: .Top,
                 relatedBy: .Equal,
                 toItem: self.view, attribute: .Top,
                 multiplier: 1.0, constant: 0.0),
             NSLayoutConstraint(
-                item: self.pageViewController.view, attribute: .Bottom,
+                item: pageViewController.view, attribute: .Bottom,
                 relatedBy: .Equal,
                 toItem: self.view, attribute: .Bottom,
                 multiplier: 1.0, constant: 0.0),
             NSLayoutConstraint(
-                item: self.pageViewController.view, attribute: .Leading,
+                item: pageViewController.view, attribute: .Leading,
                 relatedBy: .Equal,
                 toItem: self.view, attribute: .Leading,
                 multiplier: 1.0, constant: 0.0),
             NSLayoutConstraint(
-                item: self.pageViewController.view, attribute: .Trailing,
+                item: pageViewController.view, attribute: .Trailing,
                 relatedBy: .Equal,
                 toItem: self.view, attribute: .Trailing,
                 multiplier: 1.0, constant: 0.0)
         ])
         
-        self.pageViewController.didMoveToParentViewController(self)
-        
-        self.pageViewController.view.backgroundColor = UIColor.clearColor()
-        
-        self.pageViewController.delegate = self
-        self.pageViewController.dataSource = self
+        pageViewController.didMoveToParentViewController(self)
+        pageViewController.view.backgroundColor = UIColor.clearColor()
+        
+        pageViewController.delegate = self
+        pageViewController.dataSource = self
 
         if let progressView = self.progressView {
             let progressViewHeight = progressView.frame.size.height

        return nil
    }
    
   private func viewControllerAfterViewController(viewController:UIViewController) -> UIViewController? {
        if let index = self.viewControllers.indexOf(viewController) {
            let nextIndex = index + 1
            if nextIndex < self.viewControllers.count {

    public func scrollViewDidEndDragging(scrollView: UIScrollView, willDecelerate decelerate: Bool) {
        if !decelerate {
            self.scrollFinished(scrollView)
        } else {
            /*
            UIView.animateWithDuration(0.2) { () -> Void in
                self.setNeedsStatusBarAppearanceUpdate()
            }*/
        }
    }
    
