work on pagination and pages.