UI-3 reference local var instead of window var for registry