fixed the routes for favorites