added a function to set the volume at scroll up/down for not repeating code