add delete button function