moved state rendering