associating plan with template