added average toggle to details screen