Pagination stuff

It works now