added pagescontroller