graph and ui work together