document becomes aDocument (preparing for multiple windows...)