Well era2000,
You are defined this behavior.
In both of case you are set header.in_status.value, aren't you?
This behavior shouldn't to have anything with OK and Cancel button,
because this is on_edit_form_created event, ie. this is setup for your
edit forms header and details nodes.
Have you defined something code bellow OK and Cancel on_click
event?
Regards,
Radosav