sysout for mainwindow