update MainActivity.java