adding a typing feature to chat.