Adding getPaginationData in case any one only wants the calculated data and do the rendering oneself