                 // reset selected menu item view position
                 switch menuOptions.mode {
                 case .Standard, .Infinite:
-                    self.moveToMenuPage(self.menuView.currentPage, animated: true)
+                    self.moveToMenuPage(menuView.currentPage, animated: true)
                 default: break
                 }
                 }, completion: nil)

        
        let duration = animated ? options.animationDuration : 0
        UIView.animateWithDuration(duration, animations: {
            [unowned self] () -> Void in
            self.pagingViewController.positionMenuController()
            }) { [weak self] (_) -> Void in
                guard let _ = self else { return }
                
                self!.pagingViewController.relayoutPagingViewControllers()
                
                // show paging views
                self!.showPagingMenuControllers()

        }
        
        pagingViewController = PagingViewController(viewControllers: viewControllers, options: options)
    }

    private func layoutPagingViewController() {
        guard let pagingViewController = pagingViewController else { return }
        let viewsDictionary: [String: UIView]
        switch options.componentType {
        case .PagingController:
            viewsDictionary = ["pagingView": pagingViewController.view]
        default:
            guard let menuView = menuView else { return }
            viewsDictionary = ["menuView": menuView, "pagingView": pagingViewController.view]
        }

