adapt to new pagecontroler api