Re-wrote zoom_graph callback and did a little cleanup.