Pagination done. Need to set a correct maxPage still