ui refactoring for two projects