add a modal dialog to send messages to the server