add search all feature, refactor search controller.