moved pages functionality to /pages endpoint