moved ui elements form testfactory to TextUi