changed A LOT in the Mainwindow classes, removed lots of useless threads