Move auto-searching code out of Records widget into