add method for index in pagescontroller so that root path works