normalize form submit events