added add and delete function and json data