Added method for restoring form data