adding pretty urls and routes for frontend