Refactor multi window with iOS working