beautify search controller