Update territories.php