Sanitize messages on the client and on the server, improve the gui