Changes to MainActivity.java file