added pause/resume toggle