Update MainActivity.java

Added button event handlers, and exit button now exits