changed routeconfig to remove pages from routes to allow passing pages as url parameters