improved multi line edit behavior