add event listener for input number