added listeners in onPause/onResume/onDestroy