make sure view has a window when updating styling