this was a really stupid bug, i just used the wrong variable in the loop
clean up and start implementing my data model
code to read and insert values in model tree, the view does update. nice!