refactoring about service and ui
refactoring about ui