move rendering messages into its own template and add some styles