made some changes to the chat modul