fixing the delete button in the lists