added button handler in MainActivity.java