refactoring for Pages.
added ApiToken API