refactor stat pauseall feature