more work on GUI and message sending.