Added condition to prevent "empty" entries; added confirm logic to the delete action.
Fixed wrong confirmation phrase.