adding handlebars mode