added an alert in tenantBefore success