update migrate to manage template email