chat window works bidirectionally