fix popup to work for widgets, not just containers

the previous type was too restrictive