Update MainActivity.java

Basic functionality commit