set up search controller