onPause change.
Improved onPause.