implements pauseplay functionality