fixed widget generation to comply with previous toolbox expectations