update API for paging feature