Update MainActivity.java

handler added