modified to use handlebars