moved ChatPane into a separate file/class