added pause button toggle