How to change data after it's been submitted in order to update status?