made the delete button work