changed from reseting data attributes to updating just the status param