json updated on add and remove