graph.restart() method is now called on click on clear button