refactoring ui (sys froze)