before apply custom Alert