converting background page to eventPage