update data handler