moved search to results controller