Made the LocationsComponent check ID instead of name