added all the intents and button clicks