Converted extension to use event page instead of background page