Moved "notebook" code to FileWindow.__init__