Changed currentIndex to use expose and use the internal property currentPageIndex, to allow other classes to get the information about the current index