migrating old templates
templates will be removed if user is removed