update for delete functionality

update delete