improve graph, enable resize