modified form to submit to AJAX