in progress: edit mode

Refactoring
in progress: edit mode

first JSON for edit mode