displayWidget: support taking either a DOM-ID or an element reference

refs #211