Fixes #5401, adding back .btn-danger class to remove dialogs.