hide element on click on delete, show it again if deleting fails