designer layout refactoring