implemented handlebars templates