refactor, pause button