for volume slider, use oninput rather than onchange