changed uses of ui_ctr_flags to use meaningfull names