first working version of update function that enables updating full urls