improve editing behavior

- fix textfield focusing
- fix ending of editing when editing in a table
- make sure if the field is edited multiple times that the revert state
gets updated
- also clean up and rename a few things for legibility’s sake