convert to event page model

as per https://developer.chrome.com/extensions/event_pages