add related links to circle hierarchy, move variables irellevant to colors over to shared functions