Edit onResume Shared Preferences part