Refactored widget configurator to use Handlebars templates.