Associate cards with their parents and children