use a template for widget