preview reflects changes to contents of editor