tinkered with onCreate(), onPause(), and onResume() methods