epic ui refactoring