added delete button functionality