add zooming to graph