ticket:2 add activity save state code for the MainActivity