retrieve item's id from url