Apply search field in controller