fix: make graph expand properly when nodes are clicked