added preview mode for pages