Made a dialog when user clicks the pause