Added necessary intents to MainActivity