Make updateUrl method only listen to id changes