Added the AJAX support on form submission