put extends at top of template

didn't test but should fix http://manage.dimagi.com/default.asp?91320