Move the HTML from widget class to the templates