We should use the globally declared UI variable