Add templates and refine some areas for widgets.