fixed 'checkConsraints' for first tab
'mainwindow' -> 'mainWindow'