Refactor: extracted refreshCache() into a separate class for reuse.
Implemented delete confirmation form.