update d3 tree visualiser widget to new model