update url on query