implement ChatView