Converts pause button to opening a dialog to prevent actions while paused and to clearly dim the screen.