added in graphing when you close the simulation
trying to fix merge