added TODO
simpler code with globals
first version of the edit form