This should only be done once in `addWidgetAttributes`