onPause, onResume and onDestroy in challenges