added preview for history