adjust editor layout