togglepause timer functional