edit tamplate preview