resolved #15 by implementing SwitchToWindow and CloseCurrentAndSwitchToWindow methods