added some ui funcs