template preview update