Simplify MainActivity.java