added AJAX to process the form