changed graph to d3.layout.tree with fixed collapse