refactored search controller to use pagerfanta