changed view to QTableWidget + a lot of stuff