hooking into correct intents