add window outlet
remove unnecessary outlet variable
Merge branch 'Watson1978-ib' into ib