updated intent listen method