Managing tasks for a widget