Changed pause button logic