Added logic to update fields, and submit button.