dry controlller by hving search.rb in model and extract filter into controller