added onDestroy event