ui communicates with graph