refactored language filter on resource index route, needs more testing