Added pagescontroller