search controller unfinished