Added destroy feature but functionality not fully working