put extends at top of template
Merge pull request #2198 from dimagi/mass-email

put extends at top of template