change form submit to remove nested events