added preview mode editor