if there's a selection, use that as the initial search value