Added onStop(), onRestart(), and onStart() methods to DisplayMessageActivity and MainActivity.