change react.js to spa