using templates to show events