restoring position after vindow deactivation