end of line resolution in mainwindow