added preview toggle