chat functionality completed