add currentPageIndex property