Logic to handle the visibility of a delete button added. Should work as intended.