Added delete functionality using ajax