minor changes to scope with mdisubwindow