refactoring: rid of reactjs warning about array ids