changed alert for custom message function