Template upgrade