removed dead code from ui.h