integrates search controller with main window (+tests)