Added handlers for search and pagination for sites.