update react refactor index