made the graphs work in the simulation state