currentPageIndex setter added