Define widget callbacks in the template.