Added samples for window switching