Update PageController to new AppFramework
make apicontroller up to date with appframework