add util for check if a window is already opened