update the plan_detail template file