implemented update node functionality