upgrade template