fixed check on confirmdelete