adding template to in body insertion mode