functionality in mapwindow changed so we can get w and h