changed delete confirmation to happen before ajax request