edit paging method