inject Pages model into PagesController