delete mwindow before restarting for new theme