removed test functionality from mainwindow and re-inserted previous fix by LB