improved page mediator