make the graph pop up when simulation is over
merge conflict