single switch -> if. however, this might have been a preparation for more cases to come later?
avoided a code repetition
catch all cases expcept YES on dialog return/close