Added event listener for chat message