Refactored alert message