converting background page to event page, adding permissions for storage