Finished Pagination implementation