update api key and default location