added join and leave chat, added chat callbacks