ui documents refactoring