improve UI text box rendering