don't render states before they are updated