Added the ability to not dismiss the dialog when actio buttons are pressed.