fixes the basic ajax delete