proper wiring of intents