Adding mainwindow clear functionality