fixing layout in the editor