updates to tree functionality. also, flexbox css for the tree