changes the api urls and update the model