got state sending and rendering properly