Added message box and code tosend message to server