load the chat elements when the page is loaded