updates all input fields and functionality