refactor search blade and search controller