custom templates upgrade