pushing onPause and onResume