make sure UI windows are created on the main queue