Add get current page index method