Added an ajax save call when the form is submitted