page routes refactored