deleted onStart and onResume, onPause ends file