refine editor layout