updates to graph - pan and zoom