add toggle for Average
add barchart envelope for average