added document to page:before-switch event data