fixed incorrect page stats when computing page totals and limit is 1
color metrics on history page according to resource colors