using a new interface(iWindow) toward control the windows