changes value of input fields