added clearForm method