add delete functionality from core data