finished refactoring of quicksearchbox