paginated the pages