mainwindow changed for adding & deleting textfiles