fixed widget generation to comply with previous toolbox expectations
#142466 Add to the widget templates list of dynamically created widgets