update status when saving