Hook up the dialog action buttons.