integrated viewType into taskTableLabel, small changes to Histories