This isn't compatible with multiple dialogs.

Instead, try a dialog(). Refer to code/redeeming.js for an example of a dialog with multiple buttons.