why stuck at mainwindow?