Updated destroy method ith Ajax