Update record_state.php