How to disable the original mainwindow widget??