Added intents and buttons