added average lines and toggles to history chart