add ajax to update nodes