updated page to properly build and submit the form