update url and key