migrated all state into store