make currentPageIndex, previousPageIndex && totalPages public