More refactoring

- tries to use the search filter inputs instead of building the search url manually (security people!!)
- fixes an error with empty parameters
- renames "topic" to "filters" since that's what they are