states now loading in correct order