added PagesController and new homepage