Updated code for fetching routes and displaying them