adding persistent template preview