delete outcommented code
write data from form to store
make global variable in data edit local
reload form in display view when changing data