removed edit from previewmode