implemented listener for deleted entity