use configs/routes.js for routes, render based on page name