reactivated the mian window