save settings onPause/onStop