Added code for pause button