adjust layout of editor