fixed bug in UI.js inputChange