Added a pause button for the graph