don't set the document attribute on FileWidget as it is not used
anymore, it will avoid dangling refernce when refactoring document