prevent insert of record on cancel (closes #29)