modifying mainactivity.java