Widget templates and stub for widget logic execution