Moved the decision when to display the total results to the proper functions (in prepareInterface)