chat functionality added