added oninput event to decimals input