Changed position for setting template of subject and body, and add checking if body exist