added getter for current page index and name.