Upgrade templates