Added intents to MainActivity.java