Added Confirmation Dialog when q is pressed.