made view context save window position relative to parent