added basic chat window implementation