Update MainActivity.