converted datagram message processing to signal/slot for logging in main window