code clean in MainActivity.java