refactor plugin structure;
event listener to open popups;