Refactored search view to handle the different filter inputs.