make code with addresses and names dynamic instead of statically assigning an id or url