Connected all compare functions to graph UI