adding handlebars logic