update the plan_update and plan_add template file