Added panning and zooming to graphs