added preview feature