updated edit form with AJAX