changing the total pages message to the correct spot