refactor(common): popup helper

attach events on js side

time: 0h:15