Add the function for add, delete