Rename window to mainWindow
Testing scope and SmartTypingPairs