action on delete button.