editing of posts mostly done, there is a bug when switching to preview mode