Added support for two extra buttons in the MessageDialog along with temporarily overriding the dialog's settings.