add update url function for modal