update event listener for page.createWithContent