changes to support using the diagnosis widget without an element