Why is form is in restore mode?