Upgrade template and version