Added support to submit the data as a form