improve the way of keep window flags in DialogReaderMenu