Update territory.php