fixing reset all facets and refactoring search in scala controller