fixing things when moving to react