Added support for submitting form