Allow to override how the widget is rendered by using templates