added context menu for scaling the graph