Working paginaiton over multiple pages