updates to widget creation