input event listener for ranges