update url properly