remove graph and add publisher of state