implmented paging in ajax-client