now hopefully the ultimate fix for update view after window closed