created Tree view

tree view updates the DOM every time there is a change to the tree model.