added delete logic for responses