added pause button toggle ability that survives reloading of webpage