PageController now depends on PageRepository
remove unused boilerplate