some reordering
fixed displaying of active node
some css optimization for graph
refactored piechart
partially solved the problem that the graph should be updated when following the mainNode