adds window creation.