refactoring view search questions