Got vit to work correctly with multiple windows (I think)