add simple GUI with events to Scala Instant Messenger