adding pages to paginate