integrating widgets with chapters