add API for delete and add state