saves all attribute values that have been "edited" automatically before ...

...submitting the update form

- also fix a markup bug that closes a <td> tag with a </th>