Callback to ChatManager added. Implemented functionality for sendMessage and appendMessageToChat