correct initialization and handling of search option changes