optimization to referenceUI, also, do not load doppio if not necessary