             
                 let action = UIAlertAction(title: viewControllerGreeting, style: UIAlertActionStyle.default, handler: { (alertAction) in
                     
-                    let viewController = self.viewControllerAtIndex(index)!
+                    let viewController = self.viewController(at: index)!
                     
                     let direction:EMPageViewControllerNavigationDirection = index > selectedIndex ? .forward : .reverse
                     

        // If it wasn't successful, the selected view controller is the start view controller
        if transitionSuccessful {
            
            if (self.indexOfViewController(destinationViewController) == 0) {
                self.reverseButton.isEnabled = false
            } else {
                self.reverseButton.isEnabled = true
            }
            
            if (self.indexOfViewController(destinationViewController) == self.greetings.count - 1) {
                self.forwardButton.isEnabled = false
            } else {
                self.forwardButton.isEnabled = true

        
        let choiceViewController = UIAlertController(title: "Scroll To...", message: nil, preferredStyle: UIAlertControllerStyle.actionSheet)
        
        let selectedIndex = self.index(of: self.pageViewController!.selectedViewController as! GreetingViewController)!
        
        for (index, viewControllerGreeting) in greetings.enumerated() {
            
