load template and change extent