[PD] switch between edit and run modes