prim simulation moved into SimulationDialog class