change localhost to correct url in state.js