refactor on design tree