adjustments on form submission via ajax