update user and add pagination