move the whole mainwindow ui into a layout file .ui
there might still be crashes or bad behavior because i missed some widgets