How to change parameters by scrolling in the text boxes?