working on dependency expand/collapse. almost done