updated the input fields with proper items