add an alert when a message is sent to the server