-- reverted the refactoring for active events in main.js to fix the breaking active events comparison