modified previews part for previewing a template change