fix pagescontroller