removed some unnecessary code from MainActivity.java page