create search controller