         direction: .Forward,
         animated: true,
         completion: { [unowned self] finished in
-          if finished {
-            self.setViewController(viewController, atPage: self.currentIndex)
-          }
+          self.pagesDelegate?.pageViewController(self,
+            setViewController: viewController,
+            atPage: self.currentIndex)
         })
       if setNavigationTitle {
         title = viewController.title

        direction: direction,
        animated: true,
        completion: { [unowned self] finished in
          if finished {
            self.setViewController(viewController, atPage: self.currentIndex)
          }
        })
      if setNavigationTitle {
        title = viewController.title

// MARK: Private methods

extension PagesController {

  func viewControllerIndex(viewController: UIViewController) -> Int? {
    return find(pages, viewController)
