optimized URL a little. Refactored PageManager so it can be used in ApiCLI