creating a dictionary that stores names and ids of parents and affiliate...

...s on load