added new features to read the data and manipulate the form.