fixing confirm delete code