Allow specifying to confirm_dialog where it should be attached.