changed the way editor messages are cleared