linking filtering to routes