adding the paging control