improved message editor behavior