update form and table