Added support for passing button names to confirm dialog