Move window generation from Notepad to NotepadView