fixup! make UI component really optional

Multiple results where not properly displayed. Also make debug_json work as well