added ability to create a new window