updated totals method to allow search terms, updated listing to utilize searchType