add ajax query to update user