updated submitForm