fixed the layout of editor