updated chat demo