sync only if window is opened