changing detailedList route to a query flag on list route