added warning message on delete