added onDestroy, onResume, onPause method