Added support for extra buttons on confirm dialogs.