ui: removed overused function