updated extends tag in templates