filter search params before submitting