update MainActivity.