Code is changed to change state name from StateX (where x is an integer) to the URL (with periods, commas, forward slashes and other non alphabet characters removed) plus a unique id