Used onShow to enable event listening for each view