new class for mainwindow