added PageManager.lastIndexOfPage()