Pagination with ajax and user edit