Added support for multiple form submits