check for existence of win on context toggle. added initialize function