Adding onDestroy() and onPause()