Changed OnPause to OnStop