clear document info before showing it to provide multiple error boxes