adding the routes for newpages