improved dynamic layout of editor gadgets