added ajax to the delete button