templating events to html now