initialise toggle state for trees to open if a filter is given

when searching for a service, if a query string has been provided,
open the resulting tree.