replace logic bridge.on() to out of pageMod