Update functions and input field