add createButtons wrapper method to simplify alert and confirm dialogs