fixes issue where form was only modified for editing, not adding