goToPageIndex added to API