made messages persist on server and show on initial load of the page