Added id and resource_uri to state URL