migrating model and react setup