Minor changes to chat sample

Minor changes to chat sample