ui: removed nasty global variable, proceed