override onStop and onRestart