Refactor controller to use same search field partial