refactoring testing UI