The program calls windows in correct order.