add custom pagination to search for favorites function