Update the add/delete using generic type.