add delete button functionality