refactoring with better comprehension of React one way binding. Removing the editing of the elements for now