Selecting a row in the table now changes the search