Refactor range input event binding