Added functionality for displaying the chat log on the UI