Returns of windowobj are now functioning