Added delete button functionality