fixing deprecated confirm in delete