fixed new rest url for handling territory state