add delete functionality to cards