Fixed pause button functionality