I would add a method called "onPanningLandingPage" and I would remove pageIndex and add a reference to pages[0].container