location changes to api