ui line output refactoring